package com.decade.sp09.feign;

import com.decade.sp01.pojo.User;
import com.decade.web.util.JsonResult;
import org.springframework.stereotype.Component;

/**
 * @Author: decade
 * @Description: 用户降级
 * @Date: 2021/1/20 16:09
 **/
@Component
public class UserClientFB implements UserClient{
    @Override
    public JsonResult<User> getUser(Integer userId) {
        return JsonResult.err().msg("获取用户失败");
    }

    @Override
    public JsonResult addScore(Integer userId, Integer score) {
        return JsonResult.err().msg("添加用户失败");
    }
}
